package cn.ryh.seataaccount.mapper;

import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * @author Rao
 * @Description
 * @create 2022-02-15 9:34
 */
public interface AccountMapper {

    /**
     * 扣减账户余额
     * @param userId
     * @param money
     */
    void decrease(@Param("userId") Long userId, @Param("money") BigDecimal money);
}
